#
# Copyright (C) 2006-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$

include $(TOPDIR)/rules.mk

PKG_NAME:=holamundo
PKG_VERSION:=0.1.1
PKG_RELEASE:=1
PKG_MD5SUM:=19a4d8bdc9bc7add4b3668969a546b68
PKG_SOURCE_URL:=http://localhost
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
#PKG_CAT:=zcat

PKG_BUILD_DIR:=$(BUILD_DIR)/holamundo-$(PKG_VERSION)


include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz

include $(INCLUDE_DIR)/package.mk

define Package/holamundo
  SECTION:=Toys
  CATEGORY:=Misc
  TITLE:=A gadget to print greetings. Spanish flavour.
  URL:=http://localhost
endef

define Package/holamundo/Default
  URL:=http://localhost
endef

define Package/holamundo/description
 A message for help in menuconfig: You can write your help message here.
endef

define Build/Prepare
$(call Build/Prepare/Default)
endef

define Build/Compile
	$(MAKE) -C $(PKG_BUILD_DIR)/src \
		$(TARGET_CONFIGURE_OPTS) \
		LD="$(TARGET_CC)" \
		PROGRAMS="holamundo" \
		MULTI=1 SCPPROGRESS=1
endef

define Package/holamundo/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/holamundo $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,holamundo))

